package com.rent.weixin.aop;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author zhang
 * @create 2021/6/19 10:22
 */
@Slf4j
@Aspect
@Component
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class WeixinControllerAspect {

    @Pointcut("execution(public * com.rent.weixin.controller..*(..))")
    public void weixinController() {
        log.info("控制器拦截了....");
    }
}
